package com.selfdiscipline.domain.usecase.task

import com.selfdiscipline.data.model.Task
import com.selfdiscipline.domain.repository.TaskRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

/**
 * Use case to retrieve all pending tasks
 */
class GetPendingTasksUseCase @Inject constructor(
    private val taskRepository: TaskRepository
) {
    /**
     * Invokes the use case to get all pending tasks
     *
     * @return Flow of pending tasks list
     */
    operator fun invoke(): Flow<List<Task>> {
        return taskRepository.getPendingTasks()
    }
} 